package org.mikeliu.exp4.multi1.src;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.util.Scanner;

public class APlusB {
    public static void main(String[] args) throws FileNotFoundException {
    	File file1=new File("../a.txt");
    	File file2=new File("../b.txt");
    	Scanner scanner1 = new Scanner(file1);
    	Scanner scanner2 = new Scanner(file2);
    	PrintStream printStream = new PrintStream("../c.txt");
    	printStream.print(scanner1.nextInt()+scanner2.nextInt());
    	scanner1.close();
    	scanner2.close();
    	printStream.close();
    }
}
